home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / email / mime / application.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  859b  |  20 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. __all__ = [
  5.     'MIMEApplication']
  6. from email import encoders
  7. from email.mime.nonmultipart import MIMENonMultipart
  8.  
  9. class MIMEApplication(MIMENonMultipart):
  10.     
  11.     def __init__(self, _data, _subtype = 'octet-stream', _encoder = encoders.encode_base64, **_params):
  12.         if _subtype is None:
  13.             raise TypeError('Invalid application MIME subtype')
  14.         
  15.         MIMENonMultipart.__init__(self, 'application', _subtype, **_params)
  16.         self.set_payload(_data)
  17.         _encoder(self)
  18.  
  19.  
  20.